home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: mxsld2.pd.infn.it!LORETI
- From: loreti@mxsld2.pd.infn.it (Maurizio Loreti)
- Subject: Re: REQ: Circle function?
- X-Nntp-Posting-Host: mxsld2.pd.infn.it
- Message-ID: <DKwKos.4yK@news.cern.ch>
- Sender: news@news.cern.ch (USENET News System)
- Reply-To: loreti@mxsld2.pd.infn.it
- Organization: I.N.F.N. Padova - CDF/CMS VAXcluster
- References: <4cl6hb$him@news.doit.wisc.edu>,<4cri9r$1qo@pyrrhus-f.hrz.tu-chemnitz.de>
- Date: Tue, 9 Jan 1996 07:26:28 GMT
-
- In article <4cri9r$1qo@pyrrhus-f.hrz.tu-chemnitz.de>, hfst@hrz.tu-chemnitz.de (Hans Steffani) writes:
- >nicks@njackn.com (Nick A. Scheibel) writes:
- >
- >>I'm writing a small graphics lib in C for use in my programs and I
- >>can't figure out how to draw a circle. Can anyone point me to some
- >>source that will accomplish this rather small task for me?
- >> -Nick Scheibel
- >
- >Start with
- > x = x0 + r sin t
- > y = y0 + r cos t
- >with
- >0 <= t < 2 Pi
- >
- >to compute the koordinates of the points of the circle.
- >
- >h.f.s.
- >--
- >Hans Friedrich Steffani
- >Institut fuer Elektrische Maschinen und Antriebe
- >TU Chemnitz-Zwickau
- >e-mail: hans.steffani@e-technik.tu-chemnitz.de
-
- Better, look for something called "Bresenham algorithm" in a textbook
- in your library (since you are posting from an academic site).
- --
- Maurizio Loreti http://mvxpd5.pd.infn.it/wwwcdf/mlo.html
- Un. of Padova, Dept. of Physics - Padova, Italy loreti@padova.infn.it
-